package com.kitty.game.fly;


import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum FlyTypeEnums {
    TYPE_LOTUS("梦荷", 1),
    TYPE_YU_TIAN_SUO("御天梭", 2),
    TYPE_MO_YAN_FEI_JIA("魔炎飞甲", 3),
    TYPE_MO_WU_QING_YUN("墨舞青云", 4),
    TYPE_LIE_HAI_LONG_JING("裂海龙鲸", 5),
    TYPE_BI_LUAN_TIAN_ZHOU("碧鸾天舟", 6);

    private String typeName;
    private Integer type;

    public static int getType(String typeName) {
        FlyTypeEnums[] values = values();
        for (FlyTypeEnums flyTypeEnums : values) {
            if (flyTypeEnums.getTypeName().equals(typeName)) {
                return flyTypeEnums.getType();
            }
        }
        return 0;


    }


//    FlyTypeEnums(String typeName, Integer type) {
//        this.typeName = typeName;
//        this.type = type;
//    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    private Integer getType() {
        return this.type;
    }

    private String getTypeName() {
        return this.typeName;
    }

}